GBML manual / Database

Varying columns

A column set to Varying can be changed while the game runs, and costs memory; a fixed column is part of the game itself and costs none.

Fixed and varying

Every column has a Varying setting, off by default.

It starts from the table every time

A varying column begins with the numbers in the table each time the game starts, including when the whole game starts over. Changing a cell while the game runs never changes the table you edit.

What it costs

A whole number or a decimal takes 4 bytes for each row, yes or no takes 1, and text takes the text size from Project Settings (Engine limits). A column that never changes should stay fixed. The Budgets panel's Tables (game) row adds up what your varying columns take, and hovering it shows each table's share.

Which columns can vary

Number, whole, text and yesno columns. A color, sprite, sound, object or room column is always fixed.

See also: TablesReading a cell the short waydb_setdb_get